<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="ISO-8859-1"%>
<jsp:include page="templates/header.jsp" flush="true">
	<jsp:param value = "Create Quiz | Quizzard" name = "title" />
</jsp:include>
<jsp:include page="templates/title_bar.jsp" flush = "true">
	<jsp:param value = "Create a Quiz" name = "title" />
</jsp:include>
<div id = "content">
<div class = "center">
<%
	String error = (String)request.getAttribute("error");
	if (error != null) {
		out.println("<div id = 'error'>"+error+"</div>");
	}
%>
<p>Let others quiz on something of yours!</p>
<form method = "post" action = "CreateQuiz">
<p><label for = "name">Name: </label><input type = "text" name = "name" /></p>
<p><label for = "description">Description: </label><textarea name = "description" /></textarea></p>
<p><label for = "tags">Tags (separate with spaces): </label><input type = "text" name = "tags" /></p>
<p><label for = "ordered">Maintain quiz order? </label><input type = "radio" name = "ordered" checked = "checked" value = "true" /> Yes <input type = "radio" name = "ordered" value = "false"> No</p>
<p><label for = "practice">Allow users to practice? </label><input type = "radio" name = "practice" checked = "checked" value = "true" /> Yes <input type = "radio" name = "practice" value = "false"> No</p>
<p><label for = "correction">Correct answers immediately? </label><input type = "radio" name = "correction" checked = "checked" value = "true" /> Yes <input type = "radio" name = "correction" value = "false"> No</p>
<p><label for = "single_page">Put questions on one page? </label><input type = "radio" name = "single_page" checked = "checked" value = "true" /> Yes <input type = "radio" name = "single_page" value = "false"> No</p>
<p><label for = "visibility">Visibility: </label><input type = "radio" name = "visibility" checked = "checked" value = "true" /> Public <input type = "radio" name = "visibility" value = "false"> Friends Only</p>
<input type = "submit" value = "Next" class = "btn"/>
</form>
</div>
</div>
<jsp:include page="templates/footer.jsp" flush="true" />